<template>
  <div class="container">
    <h2>孙子辈组件</h2>
    展示祖先值{{ message2 }}
  </div>
</template>

<script>

export default {
  components: {},
  inject: ['message2'],
  props: {},
  data () {
    return {

    }
  },
  computed: {},
  methods: {

  },
  created () {

  },
  mounted () {

  },
}
</script>
<style scoped>
.container {
  border: 1px solid rgb(17, 211, 245);
  width: 200px;
  height: 200px;
  float: right;
}
</style>
